<extend name="Public/base" />
<block name="content">
<div id="content" style="min-width:800px;">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="#" class="current">{$meta_title}</a>
		</div>
	</div>
	
		<div class="container-fluid search-form">
			<form class="m-filter" autocomplete="off">
				<div class="clearfix">
					<a class="pull-left btn btn-success btn-filter-show" id="j-filter-show"><span class="icon-chevron-down"></span></a>
				</div>
				
				<div class="filter-box" id="j-filter-box">
					<div class="clearfix">
						<div class="filter-base filter-group">
							<a class="title"><span class="icon-list"></span> 所有活动</a>
							<span class="control-group">
								<select class="form-control" style="width: 200px;" name="activity_id" id="activity_id">
									<option value=0>选择活动</option>
									<volist name="activity_list" id="vo">
										<option value='{$vo.activity_id}'>{$vo.activity_name|strip_tags}</option>
									</volist>
								</select>
							</span>
						</div>
				
						<!-- 邮寄状态 -->
						<div class="filter-turnover filter-group form-inline pull-left">
						<a class="title"><span class="icon-glass"></span> 邮寄状态</a>
							<label class="radio-group">
					    		<input type="radio" name="mail_status" value="-1" checked>全部
					  		</label>
							<label class="radio-group">
					    		<input type="radio" name="mail_status" value="0">待发送
					  		</label>
					  		<label class="radio-group">
					    		<input type="radio" name="mail_status" value="1">已邮寄
					  		</label>
					  		<label class="radio-group">
					    		<input type="radio" name="mail_status" value="2">已签收
					  		</label>
					  		<label class="radio-group">
					    		<input type="radio" name="mail_status" value="3">已拒收
					  		</label>
						</div>
						<!-- /邮寄状态 -->		
					</div>
					
					<div class="filter-input filter-group clearfix">
						<a class="title"><span class="icon-globe"></span> 根据收件人电话号进行查询</a>
					  	<div class="control-group pull-left">
					    	<div class="controls">
								<input type="text" name="phone_number" value="{:strip_tags(I('phone_number'))}" placeholder="手机号" class="search-input" maxlength="11" >
					    	</div>
					  	</div>
					  	<button type="button" id="search_button" url="{:U('ServiceSeat/mailingTickets')}" class="btn btn-primary btn pull-left"><span class="icon-search"></span></button>
					</div>
					<br>
				</div>		
			</form>
		</div>
	
	
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content">
						<notempty name="_list">
							<table id="sum_id" class="table table-bordered table-striped">
								<thead>
									<tr>
										<th>客户姓名</th>
										<th nowrap="nowrap">绑定人</th>
										<th nowrap="nowrap">收件地址</th>
										<th nowrap="nowrap">收件人</th>
										<th>收件电话</th>
										<th>邮寄时间</th>
										<th>快递公司</th>
										<th>快递单号</th>
										<th>邮寄状态</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<volist name="_list" id="vo">
										<tr>
											<td class="taskStatus"><a href="{:U('ServiceSeat/myRecommendDial',array('origin'=>6,'id'=>$vo['customer_id']))}" >{$vo.customer_id|getServiceCustomerName}</a></td>
											<td class="taskStatus">{$vo.member_id|getUserName}</td>
											<td class="taskStatus">{$vo.receiving_address}</td>
											<td class="taskStatus">{$vo.receiving_user}</td>
											<td class="taskStatus">{$vo.receiving_phone_number}</td>
											<td class="taskStatus">{$vo.mail_time|time_format}</td>
											<td class="taskStatus">{$vo.express_id|getMailName}</td>
											<td class="taskStatus">{$vo.courier_number}</td>
											<td class="taskStatus">{$vo.mail_status|get_mail_title}</td>
											<td class="taskStatus">
												<if condition="$vo['mail_status'] eq 0">
													<a href="{:U('ServiceManage/vipStatus',array('id'=>$vo['express_detail_id'],'method'=>'mail'))}"  class="confirm ajax-get btn btn-success btn-mini">邮 寄</a>
												</if>
											</td>
										</tr>
									</volist>
								</tbody>
							</table>
								<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
									{$_page}
								</div>
						<else/>
							<center>请根据搜索条件进行查询</center>
						</notempty>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function (){
	set_value("activity_id",'{:I('activity_id')}')
	set_value("mail_status",'{:I('mail_status')}')
});
//导航高亮
highlight_subnav("{:U('ServiceSeat/mailingTickets')}");
</script>
</block>